import {http} from '../http';
export type AdsVO = {
  id: number;
  advTitle: 'string';
  advType: 'string';
  advContent: 'string';
  advImageUrl: 'string';
  pubStatus: 'string';
}[];
export type NotificationVO = {
  id: number;
  userId: number;
  userName: string;
  notificationTitle: string;
  notificationType: string;
  notificationTypeName: string;
  notificationStatus: string;
  notificationStatusName: string;
  publishType: string;
  publishTime: string;
  effectTime: number;
  notificationContent: string;
  startTime: string;
  endTime: string;
  enTitle: string;
  enContent: string;
  deTitle: string;
  deContent: string;
  createTime: string;
  startTimeMs: number;
  endTimeMs: number;
};
export const getAds = () => {
  return http.get<AdsVO>('/biz/v1/biz/adv/list', null, {
    skipAuth: true,
  });
};
export const getNotification = () => {
  return http.get<NotificationVO[]>('/biz/v1/biz/notification/list', null, {
    skipAuth: true,
  });
};
